#!/usr/bin/env python
# coding=utf-8

datas = ['1','2','3','4']
targets = 5

# for data1 in range(len(datas)):
#     for data2 in range(len(datas)):
#         if data1 + data2 == targets:
#             print("%d %d"%( data1,data2 ))
#     # print ("序号：%s   值：%s" % (data + 1, datas[data]))
# This is visual 2019 test

# for data in range(len(datas)):
#     temp = targets - int(datas[data]) 
#     if str(temp) in datas:
#         print("%s %s" %(datas[data],temp ))

for data in range(len(datas)):
    temp = targets - int( datas[data] ) 
    if str(temp) in datas:
        print("%s %s" %(datas[data],temp))



